<%@ page import="java.util.Date" %>
<%@ page import="java.text.SimpleDateFormat" %><%--
  Created by IntelliJ IDEA.
  User: dailyblue
  Date: 2024/1/22
  Time: 14:39
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    Date date = new Date();
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy年MM月dd日 HH:mm:ss");
    out.print(sdf.format(date));
%>
<hr/>
<fmt:formatDate value="<%=new Date()%>" pattern="yyyy年MM月dd日 HH:mm:ss" var="format" scope="request"/>
${format}
<hr/>
<fmt:formatNumber var="formatNumber1" scope="request" value="${10/3}" pattern="#.##"/>
<fmt:formatNumber var="formatNumber2" scope="request" value="${1000/3}" pattern="#.##"/>
${formatNumber1}<br/>
${formatNumber2}
</body>
</html>